package com.wcl.hencodertest

import com.wcl.hencodertest.KotlinTest.Delegate
import org.junit.Assert
import org.junit.Test

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * @see [Testing documentation](http://d.android.com/tools/testing)
 */
class ExampleUnitTest {
    val person: Person = Person()
    var person2: Person by Delegate()

    @Test
    fun addition_isCorrect() {
////        Assert.assertEquals(4, 2 + 2.toLong())

    }

    private fun samTest() {
        val samTest = SamTest()
        samTest.test({


        }, {

        })
    }

    private fun runWithApply() {
        //        val run = person.run {
        //            person?.age = 18
        //            1.0
        //        }
        //
        //        val apply = person.apply {
        //            age = 100
        //            person?.name = "李四"
        //        }
        //
        //        person?.let {
        //            it.run {
        //                age = 200
        //                name = "张三"
        //            }
        //        }
        //        println("age: ${apply?.age}   name: ${apply?.name} ")
    }
}